package com.shop.admin.validate.category;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@ApiModel("课程分类创建参数")
public class CategeryCreateValidate implements Serializable {

    private static final long serialVersionUID = 1L;

    @NotNull(message = "name参数缺失")
    @ApiModelProperty(value = "分类名称")
    private String name;

    @ApiModelProperty(value = "创建时间")
    private Long createTime;

    @ApiModelProperty(value = "类型")
    @NotNull(message = "type参数缺失")
    private Integer type;

    @ApiModelProperty(value = "封面图")
    private String cover;

    @ApiModelProperty(value = "背景色")
    private String background;

    @ApiModelProperty(value = "文字颜色")
    private String color;

}
